package com.eduask.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eduask.beans.TicketSaled;
import com.eduask.dao.TicketSaledDAO;
import com.eduask.service.TicketSaledService;

@Transactional
@Service
public class TicketSaledServiceImpl implements TicketSaledService{

	@Autowired
	private TicketSaledDAO ticketSaledDAO;
	
	@Override
	public List<TicketSaled> findAll() {
		return ticketSaledDAO.findAllTicketSaled();
	}

	@Override
	public void save(TicketSaled ticketSaled) {
		ticketSaledDAO.saveTicketSaled(ticketSaled);
	}

	@Override
	public void delete(TicketSaled ticketSaled) {
		ticketSaledDAO.removeTicketSaled(ticketSaled);
	}

	@Override
	public TicketSaled findById(Integer id) {
		return ticketSaledDAO.findTicketSaledById(id);
	}

}
